package com.wzdigit.wms.basic.mapper.core.transfer;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wzdigit.framework.orm.mybatis.MyBatisRepository;
import com.wzdigit.wms.basic.domain.transfer.PicktaskDtl;
import com.wzdigit.wms.basic.client.request.picktask.PicktaskMangementRequest;
import com.wzdigit.wms.basic.client.response.picktask.PicktaskMangementResp;
import com.wzdigit.wms.basic.client.response.transfer.PickTaskProgressResponse;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 拣货任务明细 Mapper 接口
 * </p>
 *
 * @author 
 * @since 2021-02-25
 */
@MyBatisRepository
public interface PicktaskDtlMapper extends BaseMapper<PicktaskDtl> {
	
	int updateStatusByBetweenStatusAndGdnDtlId(@Param("status")Integer status, @Param("modifyUser")String modifyUser, 
			@Param("gdnDtlId")Integer gdnDtlId, @Param("leStatus")Integer leStatus, @Param("geStatus")Integer geStatus);

	List<PickTaskProgressResponse> selectPickTaskProgress(Integer gdnHeaderId);

    List<PicktaskMangementResp> getTaskMmanagementInfo(PicktaskMangementRequest picktaskMangementRequest);

    Integer updateCmpQtyByDtlId(@Param("picktaskDtlUpdate") PicktaskDtl picktaskDtlUpdate, @Param("qty") BigDecimal qty);

	int updateSplit(@Param("picktaskDtl") PicktaskDtl picktaskDtl, @Param("splitQty") BigDecimal splitQty);
}
